From: Sebastian Keller Date: Fri, 17 Oct 2025 18:05:53 +0000 (+0200) Subject: messageList: Fall back to generic policy if media message has no app X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~44^2~177 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d3ade5add3fca79187694e7b0757bccd066fe7f7;p=gnome-shell.git messageList: Fall back to generic policy if media message has no app That way the notification at least still follows the global settings. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8740 Part-of: --- diff --git a/js/ui/messageList.js b/js/ui/messageList.js index ee4f7e258..dfcc69d81 100644 --- a/js/ui/messageList.js +++ b/js/ui/messageList.js @@ -841,7 +841,7 @@ class MediaMessage extends Message { this._updateNavButton(this._prevButton, this._player.canGoPrevious); this._updateNavButton(this._nextButton, this._player.canGoNext); - const appId = this._player.app?.id.replace(/\.desktop$/, ''); + const appId = this._player.app?.id.replace(/\.desktop$/, '') ?? 'generic'; if (this._policy?.id !== appId) { this._policy?.disconnectObject(this);